Hamming Distance Explained